using System;
using System.Text;

namespace OVS.BusinessObjects
{
	[Serializable()]
	public partial class CameraImage_Haar
	{
		private int _Camera_came_id;

		public int Camera_came_id
		{
			get { return _Camera_came_id; }
			set { _Camera_came_id = value; }
		}

		private int _Image_Haar_imha_id;

		public int Image_Haar_imha_id
		{
			get { return _Image_Haar_imha_id; }
			set { _Image_Haar_imha_id = value; }
		}

		public CameraImage_Haar()
		{ }

		public CameraImage_Haar(int Camera_came_id,int Image_Haar_imha_id)
		{
			this.Camera_came_id = Camera_came_id;
			this.Image_Haar_imha_id = Image_Haar_imha_id;
		}

		public override string ToString()
		{
			return "Camera_came_id = " + Camera_came_id.ToString() + ",Image_Haar_imha_id = " + Image_Haar_imha_id.ToString();
		}

		public partial class Camera_came_idComparer : System.Collections.Generic.IComparer<CameraImage_Haar>
		{
			public SorterMode SorterMode;
			public Camera_came_idComparer()
			{ }
			public Camera_came_idComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<CameraImage_Haar> Membres
			int System.Collections.Generic.IComparer<CameraImage_Haar>.Compare(CameraImage_Haar x, CameraImage_Haar y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.Camera_came_id.CompareTo(x.Camera_came_id);
				}
				else
				{
					return x.Camera_came_id.CompareTo(y.Camera_came_id);
				}
			}
			#endregion
		}
		public partial class Image_Haar_imha_idComparer : System.Collections.Generic.IComparer<CameraImage_Haar>
		{
			public SorterMode SorterMode;
			public Image_Haar_imha_idComparer()
			{ }
			public Image_Haar_imha_idComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<CameraImage_Haar> Membres
			int System.Collections.Generic.IComparer<CameraImage_Haar>.Compare(CameraImage_Haar x, CameraImage_Haar y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.Image_Haar_imha_id.CompareTo(x.Image_Haar_imha_id);
				}
				else
				{
					return x.Image_Haar_imha_id.CompareTo(y.Image_Haar_imha_id);
				}
			}
			#endregion
		}
	}
}
